package com.freedom.education.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * Description: 讲师查询参数
 * <p>CreateTime: 2023-03-12 下午 3:01</p>
 * <p>Email: 2396598264@qq.com</p>
 *
 * @author Chb
 */

@ApiModel("讲师查询参数")
@Data
public class LecturerQuery {

    @ApiModelProperty(value = "当前页码", required = true)
    private Integer page;

    @ApiModelProperty(value = "每页记录数", required = true)
    private Integer size;

    @ApiModelProperty("讲师姓名，支持模糊查询")
    private String name;

    @ApiModelProperty("讲师头衔 1:高级讲师 2:首席讲师")
    private Integer level;

    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

}
